<?php

$rows = array( array('材料编号', '材料名称', '品牌', '规格', '单位', '数量', '备注') );
if($inbound['items']) foreach($inbound['items'] as $ware){
	$rows[] = array( $ware['sno'], $ware['name'], $ware['brand'], $ware['specific'], $ware['unit'],
			fnum($ware['amount']), $ware['remark '] );
}
Exporter::csv($rows, '库存单据明细'.$inbound['sno']);

?>
